(function($) {
	"use strict";
	$.widget("isperp.echartsKpi", {
		options : {
			chart1 : {
				elementId : undefined,
				title : undefined,
				subtext : undefined,
				option : undefined
			},

			chart2 : {
				elementId : undefined,
				title : undefined,
				subtext : undefined,
				option : undefined
			},
			chart3 : {
				elementId : undefined,
				title : undefined,
				subtext : undefined,
				option : undefined
			},
			loadData : undefined,
			bassOption : {}
		},
		_create : function() {
			var chart1Option = {
				calculable : true,
				title : {
					text : chart1.title,
					subtext : chart1.subtext,
					x : "center"
				},
				toolbox : {
					feature : {},
					show : true
				},
				tooltip : {
					trigger : "item",
					formatter : "{a} {b} : {c} ({d}%)"
				},
				legend : {
					orient : "vertical",
					data : (function() {
						return ["电话","邮件","监控系统","日常检查","微信","Web","公文"];
					}),
					x : "left"
				},
				series : [ {
					center : [ "50%", "50%" ],
					radius : "55%",
					name : "用户类型",
					type : "pie",
					data : (function() {
					})
				}, {
					center : [ "50%", "50%" ],
					radius : "55%",
					name : "用户类型",
					type : "pie",
					data : (function() {
						return [{"value": 9,"name": "Web"},{"value": 4,"name": "邮件"},{"value": 50,"name": "电话"}];
					})
				} ]
			};

		},
		_loadData : function(option) {

		}

	});
}(jQuery));